package com.huawang.mdesign.model.service.dto;


import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author admin
 */
@Data
public class BatchCreateInstanceDTO extends ProjectIdDTO {

    @Schema(title = "项目id")
    private String projectId;

    @Schema(title = "包Id")
    private String packageId;

    @Schema(title = "图信息")
    private DiagramInfo diagram;

    @Schema(title = "实例树")
    private InstanceInfoDTO instanceInfoDTO;

    @Data
    public class DiagramInfo {
        private String projectId;
        private String parentId;
        private String instanceId;
        private String metaclass;
        private String defaultName;
        private int type = 0;
        private List<String> applyStereotypes;
    }
}
